package com.wh.springboot.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.wh.springboot.common.entity.Hesuan;
import com.wh.springboot.mapper.HesuanMapper;
import com.wh.springboot.service.IHesuanService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author elsy
 * @since 2023-05-04
 */
@Service
public class HesuanServiceImpl extends ServiceImpl<HesuanMapper, Hesuan> implements IHesuanService {

    @Resource
    private HesuanMapper hesuanMapper;
    @Override
    public Page<Hesuan> findPage(Page<Hesuan> page, String username) {
        return hesuanMapper.findPage(page,username);
    }

    @Override
    public List<Hesuan> findByUserId(Integer userId) {
        return  hesuanMapper.findByUserId(userId);
    }
}
